home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tools / vim / src / keymap.h < prev    next >
C/C++ Source or Header  |  1995-03-09  |  2KB  |  73 lines

  1. /* vi:ts=4:sw=4
  2.  *
  3.  * VIM - Vi IMproved        by Bram Moolenaar
  4.  *
  5.  * Read the file "credits.txt" for a list of people who contributed.
  6.  * Read the file "uganda.txt" for copying and usage conditions.
  7.  */
  8.  
  9. /*
  10.  * Keycode definitions for special keys
  11.  *
  12.  * On systems that have any of these keys, the routine 'inchar' in the
  13.  * machine-dependent code should return one of the codes here.
  14.  */
  15.  
  16. /*
  17.  * On MSDOS we use other codes, because the codes 0x80 - 0xb0 are used
  18.  * for special characters. If this is changed also change the numbers in
  19.  * term.h and main.c.
  20.  */
  21. #ifdef MSDOS
  22. # define K_OFF 0x30
  23. #else
  24. # define K_OFF 0x00
  25. #endif
  26.  
  27. #define K_CCIRCM        0x1e    /* control circumflex */
  28.  
  29. /*
  30.  * careful: the next entries must be in the same order as the termcap strings
  31.  * in term.h and the numbers must be consecutive (used by inchar()).
  32.  */
  33. #define K_UARROW        (K_OFF + 0x80)
  34. #define K_DARROW        (K_OFF + 0x81)
  35. #define K_LARROW        (K_OFF + 0x82)
  36. #define K_RARROW        (K_OFF + 0x83)
  37. #define K_SUARROW        (K_OFF + 0x84)
  38. #define K_SDARROW        (K_OFF + 0x85)
  39. #define K_SLARROW        (K_OFF + 0x86)
  40. #define K_SRARROW        (K_OFF + 0x87)
  41.  
  42. #define K_F1            (K_OFF + 0x88)    /* function keys */
  43. #define K_F2            (K_OFF + 0x89)
  44. #define K_F3            (K_OFF + 0x8a)
  45. #define K_F4            (K_OFF + 0x8b)
  46. #define K_F5            (K_OFF + 0x8c)
  47. #define K_F6            (K_OFF + 0x8d)
  48. #define K_F7            (K_OFF + 0x8e)
  49. #define K_F8            (K_OFF + 0x8f)
  50. #define K_F9            (K_OFF + 0x90)
  51. #define K_F10            (K_OFF + 0x91)
  52.  
  53. #define K_SF1            (K_OFF + 0x92)    /* shifted function keys */
  54. #define K_SF2            (K_OFF + 0x93)
  55. #define K_SF3            (K_OFF + 0x94)
  56. #define K_SF4            (K_OFF + 0x95)
  57. #define K_SF5            (K_OFF + 0x96)
  58. #define K_SF6            (K_OFF + 0x97)
  59. #define K_SF7            (K_OFF + 0x98)
  60. #define K_SF8            (K_OFF + 0x99)
  61. #define K_SF9            (K_OFF + 0x9a)
  62. #define K_SF10            (K_OFF + 0x9b)
  63.  
  64. #define K_HELP            (K_OFF + 0x9c)
  65. #define K_UNDO            (K_OFF + 0x9d)
  66.  
  67. /*
  68.  * NULs cannot be in the input string, therefore CTRL-@ is replaced by K_ZERO.
  69.  * K_NUL is used for MSDOS extended keys (same value used in term.h).
  70.  */
  71. #define K_NUL            (K_OFF + 0x9e)    /* for MSDOS: special key follows */
  72. #define K_ZERO            (K_OFF + 0x9f)    /* replaces ^@ */
  73.